Makefile: declare ostree_boot_SCRIPTS and append values
authorRicardo Salveti <ricardo@foundries.io>
Wed, 6 Nov 2019 00:16:07 +0000 (21:16 -0300)
committerRicardo Salveti <ricardo@foundries.io>
Wed, 6 Nov 2019 14:44:08 +0000 (11:44 -0300)
ostree_boot_SCRIPTS was being set on both Makefile-boot.am and
Makefile-switchroot.am, causing the first one to be replaced by the
other at the final Makefile, so declare as empty and append on both
places instead.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Makefile-boot.am
Makefile-decls.am
Makefile-switchroot.am

index b4d4a1af670e1f387e2867088b2c291b0a274408..b51928f08d7cc50d18e34a4925af96ea7c27e6f4 100644 (file)
@@ -60,7 +60,7 @@ grub2configdir = $(sysconfdir)/grub.d
 INSTALL_DATA_HOOKS += install-grub2-config-hook
 else
 # We're using our internal generator
-ostree_boot_SCRIPTS = src/boot/grub2/ostree-grub-generator
+ostree_boot_SCRIPTS += src/boot/grub2/ostree-grub-generator
 endif
 
 EXTRA_DIST += src/boot/dracut/module-setup.sh \
index 115c19fb663f5f4de9836e3d85d2eda6b2d0edac..086ee1384a0bfbd01ffba895b27b8f7bdcdbd96f 100644 (file)
@@ -47,6 +47,7 @@ typelibdir = $(libdir)/girepository-1.0
 typelib_DATA =
 gsettings_SCHEMAS =
 ostree_bootdir = $(prefix)/lib/ostree
+ostree_boot_SCRIPTS =
 ostree_boot_PROGRAMS =
 
 # This initializes some more variables
index ff44d4bc3981ead1592415404bf66ced2046a0b0..b81b843febbc2ed21c5e710d9a4531cd63e11ab9 100644 (file)
@@ -42,7 +42,7 @@ if BUILDOPT_USE_STATIC_COMPILER
 # to get autotools to install this as an executable but without generating rules
 # to make it itself which we have specified manually.  See
 # https://lists.gnu.org/archive/html/help-gnu-utils/2007-01/msg00007.html
-ostree_boot_SCRIPTS = ostree-prepare-root
+ostree_boot_SCRIPTS += ostree-prepare-root
 
 ostree-prepare-root : $(ostree_prepare_root_SOURCES)
        $(STATIC_COMPILER) -o $@ -static $(top_srcdir)/src/switchroot/ostree-prepare-root.c $(ostree_prepare_root_CPPFLAGS) $(AM_CFLAGS) $(DEFAULT_INCLUDES) -DOSTREE_PREPARE_ROOT_STATIC=1